<?php 
/* SVN FILE: $Id$ */
/* Testamento Test cases generated on: 2009-01-05 23:01:55 : 1231206775*/
App::import('Model', 'Testamento');

class TestamentoTestCase extends CakeTestCase {
	var $Testamento = null;
	var $fixtures = array('app.testamento', 'app.traducao', 'app.livro');

	function startTest() {
		$this->Testamento =& ClassRegistry::init('Testamento');
	}

	function testTestamentoInstance() {
		$this->assertTrue(is_a($this->Testamento, 'Testamento'));
	}

	function testTestamentoFind() {
		$this->Testamento->recursive = -1;
		$results = $this->Testamento->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('Testamento' => array(
			'id'  => 1,
			'sigla'  => '',
			'nome'  => 'Lorem ipsum dolor sit amet',
			'traducao_id'  => 1
			));
		$this->assertEqual($results, $expected);
	}
}
?>